package com.swsc.solarverse.common.exception;

/**
 * @Author chencl
 * @Date 2021/4/28 22:28
 * @Version: 1.0
 * @Description
 */
public class BizException extends RuntimeException {
	private static final int CODE_FAIL = 500;
	private int code;

	public BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		this.code = CODE_FAIL;
	}

	public BizException(String message, Throwable throwable) {
		super(message, throwable);
		this.code = CODE_FAIL;
	}

	public BizException(String message) {
		super(message);
		this.code = CODE_FAIL;

	}
	public BizException(int code, String message) {
		super(message);
		this.code = code;
	}

}
